import 'package:bookshelf/generated/json/base/json_convert_content.dart';
import 'package:bookshelf/entity/book_entity.dart';

BookEntity $BookEntityFromJson(Map<String, dynamic> json) {
	final BookEntity bookEntity = BookEntity();
	final String? searchNo = jsonConvert.convert<String>(json['searchNo']);
	if (searchNo != null) {
		bookEntity.searchNo = searchNo;
	}
	final String? isbn = jsonConvert.convert<String>(json['isbn']);
	if (isbn != null) {
		bookEntity.isbn = isbn;
	}
	final String? mainTitle = jsonConvert.convert<String>(json['mainTitle']);
	if (mainTitle != null) {
		bookEntity.mainTitle = mainTitle;
	}
	final String? author = jsonConvert.convert<String>(json['author']);
	if (author != null) {
		bookEntity.author = author;
	}
	final String? chiClassify = jsonConvert.convert<String>(json['chiClassify']);
	if (chiClassify != null) {
		bookEntity.chiClassify = chiClassify;
	}
	final String? subject = jsonConvert.convert<String>(json['subject']);
	if (subject != null) {
		bookEntity.subject = subject;
	}
	final String? publisher = jsonConvert.convert<String>(json['publisher']);
	if (publisher != null) {
		bookEntity.publisher = publisher;
	}
	final dynamic? publishAddr = jsonConvert.convert<dynamic>(json['publishAddr']);
	if (publishAddr != null) {
		bookEntity.publishAddr = publishAddr;
	}
	final String? publishDate = jsonConvert.convert<String>(json['publishDate']);
	if (publishDate != null) {
		bookEntity.publishDate = publishDate;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		bookEntity.price = price;
	}
	final dynamic? language = jsonConvert.convert<dynamic>(json['language']);
	if (language != null) {
		bookEntity.language = language;
	}
	final String? pages = jsonConvert.convert<String>(json['pages']);
	if (pages != null) {
		bookEntity.pages = pages;
	}
	final dynamic? spec = jsonConvert.convert<dynamic>(json['spec']);
	if (spec != null) {
		bookEntity.spec = spec;
	}
	final dynamic? version = jsonConvert.convert<dynamic>(json['version']);
	if (version != null) {
		bookEntity.version = version;
	}
	final dynamic? volume = jsonConvert.convert<dynamic>(json['volume']);
	if (volume != null) {
		bookEntity.volume = volume;
	}
	final dynamic? summary = jsonConvert.convert<dynamic>(json['summary']);
	if (summary != null) {
		bookEntity.summary = summary;
	}
	final dynamic? notes = jsonConvert.convert<dynamic>(json['notes']);
	if (notes != null) {
		bookEntity.notes = notes;
	}
	final String? place = jsonConvert.convert<String>(json['place']);
	if (place != null) {
		bookEntity.place = place;
	}
	final String? placeName = jsonConvert.convert<String>(json['placeName']);
	if (placeName != null) {
		bookEntity.placeName = placeName;
	}
	final String? placeFirst = jsonConvert.convert<String>(json['placeFirst']);
	if (placeFirst != null) {
		bookEntity.placeFirst = placeFirst;
	}
	final String? firstPlaceName = jsonConvert.convert<String>(json['firstPlaceName']);
	if (firstPlaceName != null) {
		bookEntity.firstPlaceName = firstPlaceName;
	}
	final String? uid = jsonConvert.convert<String>(json['uid']);
	if (uid != null) {
		bookEntity.uid = uid;
	}
	final dynamic? remark = jsonConvert.convert<dynamic>(json['remark']);
	if (remark != null) {
		bookEntity.remark = remark;
	}
	final String? no = jsonConvert.convert<String>(json['no']);
	if (no != null) {
		bookEntity.no = no;
	}
	final String? bookId = jsonConvert.convert<String>(json['bookId']);
	if (bookId != null) {
		bookEntity.bookId = bookId;
	}
	final dynamic? batchId = jsonConvert.convert<dynamic>(json['batchId']);
	if (batchId != null) {
		bookEntity.batchId = batchId;
	}
	final String? stateValue = jsonConvert.convert<String>(json['stateValue']);
	if (stateValue != null) {
		bookEntity.stateValue = stateValue;
	}
	final int? borrowCount = jsonConvert.convert<int>(json['borrowCount']);
	if (borrowCount != null) {
		bookEntity.borrowCount = borrowCount;
	}
	final int? resort = jsonConvert.convert<int>(json['resort']);
	if (resort != null) {
		bookEntity.resort = resort;
	}
	final dynamic? name = jsonConvert.convert<dynamic>(json['name']);
	if (name != null) {
		bookEntity.name = name;
	}
	final dynamic? rfid = jsonConvert.convert<dynamic>(json['rfid']);
	if (rfid != null) {
		bookEntity.rfid = rfid;
	}
	final dynamic? remarkTree = jsonConvert.convert<dynamic>(json['remarkTree']);
	if (remarkTree != null) {
		bookEntity.remarkTree = remarkTree;
	}
	final dynamic? category = jsonConvert.convert<dynamic>(json['category']);
	if (category != null) {
		bookEntity.category = category;
	}
	final String? coverFileUrl = jsonConvert.convert<String>(json['coverFileUrl']);
	if (coverFileUrl != null) {
		bookEntity.coverFileUrl = coverFileUrl;
	}
	final String? url = jsonConvert.convert<String>(json['url']);
	if (url != null) {
		bookEntity.url = url;
	}
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		bookEntity.id = id;
	}
	final int? status = jsonConvert.convert<int>(json['status']);
	if (status != null) {
		bookEntity.status = status;
	}
	return bookEntity;
}

Map<String, dynamic> $BookEntityToJson(BookEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['searchNo'] = entity.searchNo;
	data['isbn'] = entity.isbn;
	data['mainTitle'] = entity.mainTitle;
	data['author'] = entity.author;
	data['chiClassify'] = entity.chiClassify;
	data['subject'] = entity.subject;
	data['publisher'] = entity.publisher;
	data['publishAddr'] = entity.publishAddr;
	data['publishDate'] = entity.publishDate;
	data['price'] = entity.price;
	data['language'] = entity.language;
	data['pages'] = entity.pages;
	data['spec'] = entity.spec;
	data['version'] = entity.version;
	data['volume'] = entity.volume;
	data['summary'] = entity.summary;
	data['notes'] = entity.notes;
	data['place'] = entity.place;
	data['placeName'] = entity.placeName;
	data['placeFirst'] = entity.placeFirst;
	data['firstPlaceName'] = entity.firstPlaceName;
	data['uid'] = entity.uid;
	data['remark'] = entity.remark;
	data['no'] = entity.no;
	data['bookId'] = entity.bookId;
	data['batchId'] = entity.batchId;
	data['stateValue'] = entity.stateValue;
	data['borrowCount'] = entity.borrowCount;
	data['resort'] = entity.resort;
	data['name'] = entity.name;
	data['rfid'] = entity.rfid;
	data['remarkTree'] = entity.remarkTree;
	data['category'] = entity.category;
	data['coverFileUrl'] = entity.coverFileUrl;
	data['url'] = entity.url;
	data['id'] = entity.id;
	data['status'] = entity.status;
	return data;
}